package com.tender;

import com.tender.fallback.HelloApiFallback;
import com.tender.request.HelloReq;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.tender.common.Result;

/**
 * demo
 **/
@FeignClient(name = "demo", path = "/api/ws", fallbackFactory = HelloApiFallback.class)
public interface HelloApi {

    /**
     *  demo 方法
     */
    @PostMapping("/hello")
    Result<String> hello(@RequestBody HelloReq param);

}
